package com.toutiao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.toutiao.dao.RechargeOrderMapper;
import com.toutiao.dao.model.RechargeOrder;
import com.toutiao.dao.model.RechargeOrderExample;

@Service
public class RechargeOrderService {
	@Autowired
	private RechargeOrderMapper rechargeOrderMapper;

	public int countByExample(RechargeOrderExample example) {
		return this.rechargeOrderMapper.countByExample(example);
	}

	public RechargeOrder selectByPrimaryKey(Integer id) {
		return this.rechargeOrderMapper.selectByPrimaryKey(id);
	}

	public List<RechargeOrder> selectByExample(RechargeOrderExample example) {
		return this.rechargeOrderMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.rechargeOrderMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(RechargeOrder record) {
		return this.rechargeOrderMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(RechargeOrder record) {
		return this.rechargeOrderMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(RechargeOrderExample example) {
		return this.rechargeOrderMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(RechargeOrder record, RechargeOrderExample example) {
		return this.rechargeOrderMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(RechargeOrder record, RechargeOrderExample example) {
		return this.rechargeOrderMapper.updateByExample(record, example);
	}

	public int insert(RechargeOrder record) {
		return this.rechargeOrderMapper.insert(record);
	}

	public int insertSelective(RechargeOrder record) {
		return this.rechargeOrderMapper.insertSelective(record);
	}

}
